import { PureComponent } from 'react'
import { Input, Select, DatePicker, Button } from 'antd'
import SingleTable from 'components/table/index'
import styles from './storageRecord.less'
const { Option } = Select
export default class StorageRecord extends PureComponent {
    render(){
        const dataList = []
        const columns = [
        {
            key: 'gmtCreate',
            title: 'ID',
            dataIndex: 'gmtCreate',
            align: 'center',
        },
        {
            key: 'operationTypeName',
            title: '任务名称',
            dataIndex: 'operationTypeName',
            align: 'center',
        },
        {
            key: 'creatorName',
            title: '货架编号',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '4',
            title: '货架区域',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '5',
            title: '主单号',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '6',
            title: '状态',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '7',
            title: '操作人',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '8',
            title: '备注',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '9',
            title: '创建时间',
            dataIndex: 'creatorName',
            align: 'center',
        }
        ]
        return(
            <div className={styles.storageRecord}>
                <div className={styles.storageRecordBox}>
                    <h2>盘库记录</h2>
                </div>
                <div className={styles.storageRecordSerach}>
                    <div className={styles.storageRecordSin}>
                        <span className={styles.storageRecordSpan}>任务名称：</span>
                        <Input className={styles.storageRecordInput}/>
                    </div>
                    <div className={styles.storageRecordSin} style={{margin: '0 28px'}}>
                        <span className={styles.storageRecordSpan}>主单号：</span>
                        <Input className={styles.storageRecordInput}/>
                    </div>
                    <div className={styles.storageRecordSin} style={{marginRight: '28px'}}>
                        <span className={styles.storageRecordSpan}>记录状态：</span>
                        <Select className={styles.storageRecordInput}>
                            <Option value="value">Luky</Option>
                        </Select>
                    </div>
                    <div className={styles.storageRecordSin}>
                        <span className={styles.storageRecordSpan}>时间：</span>
                        <DatePicker  className={styles.storageRecordInput}/>
                    </div>
                </div>
                <div className={styles.storageRecordSerach}>
                    <div className={styles.storageRecordSin}>
                        <span className={styles.storageRecordSpan}>货架区域：</span>
                        <Select className={styles.storageRecordInput}>
                            <Option value="value">Luky</Option>
                        </Select>
                    </div>
                </div>
                <div className={styles.storageRecordButton}>
                    <Button type="primary" icon="search" style={{marginRight: '24px'}}>查询</Button>
                    <Button icon="import">查询</Button>

                </div>
                <div className={styles.storageRecordTable}>
                    <SingleTable
                        data={{ list: dataList }}
                        columns={columns}
                    />
                </div>
            </div>
        )
    }
}